package org.tuoren.official.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import org.tuoren.official.domain.TArea;

/**
 * 地区信息维护业务对象 t_area
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TArea.class, reverseConvertGenerate = false)
public class TAreaBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 地区名称
     */
    @NotBlank(message = "地区名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaName;

    /**
     * 地区类型（0：国内，1：国际）
     */
    @NotBlank(message = "地区类型（0：国内，1：国际）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaType;


}
